package com.xianyun.site.iblog.gatewayimpl;

import com.alibaba.cola.dto.Response;
import com.alibaba.fastjson.JSON;
import com.xianyun.site.iblog.gatewayimpl.common.BaseSupportGatewayImpl;
import com.xianyun.site.support.dto.clientobject.SmsMessageCO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;


/**
 * 短信网关实现
 * @author mac_zyj
 */
@Slf4j
@Component
public class SmsGatewayImpl extends BaseSupportGatewayImpl {


    public Response sendSmsMessage(SmsMessageCO receiveCmd){
        //构建消息体
        String messageString =JSON.toJSONString(receiveCmd);
        return sendMessage(messageString,receiveCmd.getTransactionId(),"SUPPORT_MESSAGE");
    }
}
